import request from '@/utils/request'

export function getSysMenu(data) {
  return request({
    url: 'menu/page',
    method: 'post',
    data
  })
}

export function getSysMenuDetail(data) {
  return request({
    url: '/menu/' + data,
    method: 'get'
  })
}

export function addSysMenu(data) {
  return request({
    url: '/menu/add',
    method: 'post',
    data
  })
}
export function editSysMenu(data) {
  return request({
    url: '/menu/update',
    method: 'post',
    data
  })
}

export function deleteSysMenu(data) {
  return request({
    url: '/menu/delete/' + data,
    method: 'post'
  })
}
